import request from '/@/utils/request';

// 部门列表
export function DepartmentGetPagedList(params?: object) {
	return request({
		url: '/api/Department/GetPagedList',
		params,
	});
}

// 新增部门
export function DepartmentCreate(data: any) {
	return request({
		url: 'api/Department/Create',
		method: 'post',
		data,
	});
}

// 编辑部门
export function DepartmentUpdate(data: any, id: string) {
	return request({
		url: `api/Department/Update/${id}`,
		method: 'put',
		data,
	});
}

// 删除部门
export function DepartmentDelete(id: string) {
	return request({
		url: `api/Department/Delete/${id}`,
		method: 'delete',
	});
}
